package com.manager.devicemanager.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.manager.devicemanager.entity.Devicestatus;
import com.manager.devicemanager.entity.Realtimedevicestatus;
import com.manager.devicemanager.entity.Statusaccounting;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.Collection;
import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;
/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wpf
 * @since 2025-06-24
 */

@Mapper
public interface StatusaccountingMapper extends BaseMapper<Statusaccounting> {
    Statusaccounting getDataLastIc();
    /**
     * 获取指定日期的最新数据
     * @param targetDate 目标日期
     * @return 最新数据
     */
    Statusaccounting  getLastDataByDayIC(Date targetDate);
     /**
     * 获取指定日期月份的最新数据
     * @param targetYearMonth 年月
     * @return 最新数据
     */
     Statusaccounting getMonthLastDataByDayIC(String targetYearMonth);


}
